﻿using System;
using System.ComponentModel.DataAnnotations;

namespace AfrikDotnetWebSite.Models
{
    public class Ad
    {
        public int Id { get; set; }

        [Required]
        public string Owner { get; set; }

        [Required]
        public string OwnerContact { get; set; }

        [Required]
        public string Image { get; set; }

        [Required]
        public string AlternateText { get; set; }

        [Required]
        public string Link { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime CreationDate { get; set; }

        [Required]
        [DataType(DataType.Date)]
        public DateTime StartDate { get; set; }

        [Required]
        public double Duration { get; set; }
    }
}